﻿<UserControl x:Class="PetriNetSharp.View.PlaceView"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
	xmlns:converters="clr-namespace:PetriNetSharp.Converter"
    Height="{DynamicResource PlaceHeight}" 
	Width="{DynamicResource PlaceWidth}" 
	FocusManager.IsFocusScope="True" 
	Focusable="True" 
	GotFocus="UserControl_GotFocus" 
	LostFocus="UserControl_LostFocus" >
	
	<Canvas>
		<!-- Shape -->
        <Ellipse x:Name="ellipse" 
                 Canvas.Top="0" 
                 Canvas.Left="0" 
                 Height="100" 
                 Width="100"
                 Stroke="Black" 
                 StrokeThickness="0" 
                 MouseDown="ellipse_MouseDown" 
                 Fill="{DynamicResource PlaceBackgroundBrush}" />

        <!-- Token Slider -->
		<Slider x:Name="tokenSlider" 
                Canvas.Left="2" 
                Canvas.Top="26" 
                Height="21" 
                Width="96" 
                Maximum="100" 
                SmallChange="1" 
                TickPlacement="BottomRight" 
                Value="50" 
                Keyboard.GotKeyboardFocus="tokenSlider_GotKeyboardFocus" 
				IsSnapToTickEnabled="True"
				AutoToolTipPlacement="BottomRight"
				ToolTipService.ShowOnDisabled="True"/>
		
		<!-- Name Text Box -->
		<TextBox x:Name="nameTextBox" 
                 Canvas.Top="51" 
                 Height="23" 
                 Canvas.Left="11" 
                 Width="77" 
                 Background="Transparent" 
				 Foreground="Black"
                 BorderThickness="0.5" 
                 HorizontalContentAlignment="Center"
                 Keyboard.GotKeyboardFocus="nameTextBox_GotKeyboardFocus"
				 ToolTipService.ShowOnDisabled="True" />
	</Canvas>
</UserControl>
